doc2text python example

35

import win32com.client
app = win32com.client.Dispatch('Word.Application')
doc = app.Documents.Open('c:\\files\\mydocument.doc')
text = doc.Content.Text
Print(text)
app.Quit()

Comments

Submit
0 Comments